package com.example.jbmsuppliers.bluetooth.le;

import java.lang.Object;

/**
 * Created by root on 16-10-16.
 */
public interface Life
{
	void Born(int retry, int timout);
	boolean AmILiving();
	boolean IamLiving();
	boolean RuLiving();
	boolean RuLivingWell();
	boolean Wakeup(Object... args);
	boolean IsLast(Object... args);
	boolean Die();
	boolean BindParameter(Object... param);
	Object GetParameter(int index);
	boolean BindLifeName(ResKey key);
	ResKey GetLifeName();
	boolean SetStatus(int status);
	int GetStatus();
	int GetOverTime();

	boolean ReleaseFromPool();
	boolean BindPool(Resource resource);

	void SetUniqueIndex(Object uniqueidx);
	Object GetUniqueIndex();

	public static int newlife = 0;
	public static int inqueue = 1;
	public static int leftqueue = 2;

	public static int longlife = 3;
}
